package io.seata.sharding4.call.service;

import io.seata.sharding4.common.dto.BusinessDTO;
import io.seata.sharding4.common.response.ObjectResponse;

/**
 * @author Administrator
 */
public interface BusinessService {
    /**
     * 出处理业务服务
     *
     * @param businessDTO
     * @return ObjectResponse
     */
    ObjectResponse handleBusiness1(BusinessDTO businessDTO);


    /**
     * 出处理业务服务，出现异常回滚
     *
     * @param businessDTO
     * @return ObjectResponse
     */
    ObjectResponse handleBusiness2(BusinessDTO businessDTO);
}
